home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / dsl.vim < prev    next >
Encoding:
Text File  |  2001-05-02  |  1.3 KB  |  40 lines

  1. " Vim syntax file
  2. " Language:    DSSSL
  3. " Maintainer:    Johannes Zellner <johannes@zellner.org>
  4. " Last Change:    Die, 01 Mai 2001 11:41:51 +0200
  5. " Filenames:    *.dsl
  6. " URL:        http://www.zellner.org/vim/syntax/dsl.vim
  7. " $Id: dsl.vim,v 1.5 2001/05/01 20:52:31 joze Exp $
  8.  
  9. if exists("b:current_syntax") | finish | endif
  10.  
  11. runtime syntax/xml.vim
  12. syn cluster xmlRegionHook add=dslRegion,dslComment
  13. syn cluster xmlCommentHook add=dslCond
  14.  
  15. " EXAMPLE:
  16. "   <![ %output.html; [
  17. "     <!-- some comment -->
  18. "     (define html-manifest #f)
  19. "   ]]>
  20. "
  21. " NOTE: 'contains' the same as xmlRegion, except xmlTag / xmlEndTag
  22. syn region  dslCond matchgroup=dslCondDelim start="\[\_[^[]\+\[" end="]]" contains=xmlCdata,@xmlRegionCluster,xmlComment,xmlEntity,xmlProcessing,@xmlRegionHook
  23.  
  24. " NOTE, that dslRegion and dslComment do both NOT have a 'contained'
  25. " argument, so this will also work in plain dsssl documents.
  26.  
  27. syn region dslRegion matchgroup=Delimiter start=+(+ end=+)+ contains=dslRegion,dslString,dslComment
  28. syn match dslString +"\_[^"]*"+ contained
  29. syn match dslComment +;.*$+ contains=dslTodo
  30. syn keyword dslTodo contained TODO FIXME XXX display
  31.  
  32. " The default highlighting.
  33. hi def link dslTodo        Todo
  34. hi def link dslString        String
  35. hi def link dslComment        Comment
  36. " compare the following with xmlCdataStart / xmlCdataEnd
  37. hi def link dslCondDelim    Type
  38.  
  39. let b:current_syntax = "dsl"
  40.